﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp14
{
    public enum food
    {
        酸辣土豆丝,
        土豆,
        清蒸黄瓜
    }
    class CookRobot : Robot
    {
        private string caiming;

        public string Caiming
        {
            get { return this.caiming; }
            set { this.caiming = value; }
        }

        public CookRobot() { }
        public CookRobot(string name, string caiming, food food) : base(name)
        {
            this.caiming = caiming;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人，炒的菜名{1}", base.Name, this.caiming);
        }
    }
}
